var n = require("../../services/api.js");
var app = getApp()
Page({
    data: {
        info: {}
    },
    onLoad: function(n) {
      wx.request({
        url: app.globalData.hosts + "/xcxapi/getmember",
        header: {
          'Cookie': 'PHPSESSID=' + app.globalData.sessionId
        },
        data: {
          id: app.globalData.member_id
        },
        success: (res) => {
          this.setData({
            info: res.data.data,

          })
        },

      });
    },
    onReady: function() {},
    onShow: function() {
        var o = this;
        (0, n.getPayInfo)().then(function(n) {
            200 === n.data.code && o.setData({
                info: n.data.data
            });
        });
        this.onLoad();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});